import { createSlice } from '@reduxjs/toolkit';

const reservationListSlice = createSlice({
  name: 'reservationList',
  initialState: {
    reservationList: [],
  },
  reducers: {
    setReservationList: (state, action) => {
      state.reservationList = action.payload;
    },
  },
});

export const { setReservationList } = reservationListSlice.actions;
export default reservationListSlice.reducer;
